local shinan = fk.CreateSkill {
  name = "rfenghou_3d13j__shinan",
}

shinan:addEffect(fk.CardUsing, {
  can_trigger = function(self, event, target, player, data)
    local from = data.from
    return player:hasSkill(shinan.name) and from and from ~= player and data.card and
    (data.card:isCommonTrick() or data.card.type == Card.TypeBasic) and data:isOnlyTarget(from) and from:canUseTo(data.card, player, { bypass_distances = true, bypass_times = true })
  end,
  on_cost = function(self, event, target, player, data)
    return player.room:askToSkillInvoke(player, {
      skill_name = shinan.name,
      prompt = "#rfenghou_3d13j__shinan-invoke:"..data.from.id.."::"..data.card:toLogString()
    })
  end,
  on_use = function(self, event, target, player, data)
    player:turnOver()
    data:addTarget(player)
  end
})

Fk:loadTranslationTable{
  ["rfenghou_3d13j__shinan"] = "酾难",
  [":rfenghou_3d13j__shinan"] = "其他角色使用仅指定自己为目标的即时牌时，你可以翻面并成为此牌的额外目标。",

  ["#rfenghou_3d13j__shinan-invoke"] = "酾难：你可以翻面，成为 %src 使用 %arg 的额外目标",
}

return shinan